package com.weifangfirecontrolformal.weifangfirecontrolformal.web.service.check.fireequipment;

import cn.hutool.json.JSONObject;
import com.weifangfirecontrolformal.weifangfirecontrolformal.common.base.BaseService;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.model.RespEntity;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.utils.requestutil.HttpRequestUtil;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class FireEquipmentService extends BaseService {

	private static final Logger logger = LoggerFactory.getLogger(FireEquipmentService.class);


	/**
	 * 消防器材列表
	 * @param
	 * @return
	 */
	public RespEntity fireEquipmentListPage(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","fireEquipmentListPage","fireEquipment");
	}

	/**
	 * 消防器材详情
	 * @param
	 * @return
	 */
	public RespEntity fireEquipmentDetail(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","fireEquipmentDetail","fireEquipment");
	}

	/**
	 * 消防器材新增
	 * @param
	 * @return
	 */
	public RespEntity fireEquipmentAdd(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","fireEquipmentAdd","fireEquipment");
	}

	/**
	 * 消防器材修改
	 * @param
	 * @return
	 */
	public RespEntity fireEquipmentUpdate(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","fireEquipmentUpdate","fireEquipment");
	}

	/**
	 * 消防器材删除
	 * @param
	 * @return
	 */
	public RespEntity fireEquipmentDelete(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","fireEquipmentDelete","fireEquipment");
	}

	/**
	 * 消防器材类型列表
	 * @param
	 * @return
	 */
	public RespEntity fireEquipmentTypeList(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","fireEquipmentTypeList","fireEquipment");
	}

}
